package com.apexedu.theme.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by 建 on 2015/4/7.
 */
@Entity
@Table(name = "T_XXFB_SITE")
public class TXxfbSite {
    private String wid;//主键
    private String zdbm;//站点编码
    private String zdmc;//站点名称
    private Date cjsj;//创建时间
    private String state;//站点状态
    private String ordernum;//站点排序值

    @Id
    @Basic
    @Column(name = "WID", nullable = false, insertable = true, updatable = true, length = 50)
    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @Basic
    @Column(name = "ZDBM", nullable = false, insertable = true, updatable = true, length = 50)
    public String getZdbm() {
        return zdbm;
    }

    public void setZdbm(String zdbm) {
        this.zdbm = zdbm;
    }

    @Basic
    @Column(name = "ZDMC", nullable = false, insertable = true, updatable = true, length = 50)
    public String getZdmc() {
        return zdmc;
    }

    public void setZdmc(String zdmc) {
        this.zdmc = zdmc;
    }

    @Basic
    @Column(name = "CJSJ", nullable = true, insertable = true, updatable = true)
    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    @Basic
    @Column(name = "STATE", nullable = true, insertable = true, updatable = true, length = 2)
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    @Basic
    @Column(name = "ORDERNUM", nullable = true, insertable = true, updatable = true, length = 20)
    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TXxfbSite tXxfbSite = (TXxfbSite) o;

        if (wid != null ? !wid.equals(tXxfbSite.wid) : tXxfbSite.wid != null) return false;
        if (zdbm != null ? !zdbm.equals(tXxfbSite.zdbm) : tXxfbSite.zdbm != null) return false;
        if (zdmc != null ? !zdmc.equals(tXxfbSite.zdmc) : tXxfbSite.zdmc != null) return false;
        if (cjsj != null ? !cjsj.equals(tXxfbSite.cjsj) : tXxfbSite.cjsj != null) return false;
        if (state != null ? !state.equals(tXxfbSite.state) : tXxfbSite.state != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = wid != null ? wid.hashCode() : 0;
        result = 31 * result + (zdbm != null ? zdbm.hashCode() : 0);
        result = 31 * result + (zdmc != null ? zdmc.hashCode() : 0);
        result = 31 * result + (cjsj != null ? cjsj.hashCode() : 0);
        result = 31 * result + (state != null ? state.hashCode() : 0);
        return result;
    }
}
